package org.dppc.fine4j.objmanager.exceptions;

/**
 * 重复对象异常
 * 
 * @author maomh
 *
 */
public class DuplicateObjectException extends Exception {
	private static final long serialVersionUID = 3195945997936701887L;
	
	private Class<?> clazz;
	
	public DuplicateObjectException(Class<?> clazz) {
		super("对象管理器中存在多个类型为[" +clazz.getName() +"]的对象，无法确定返回哪个！");
		this.clazz =clazz;
	}
	
	public Class<?> getExceptionClass() {
		return clazz;
	}
}
